﻿using System;
using System.ComponentModel.DataAnnotations;

namespace JNPF.Basics.Models.Extend.Dtos.Schedule
{
    /// <summary>
    /// 新建日程安排
    /// </summary>
    public class ScheduleCrInput
    {
        /// <summary>
        /// 开始时间
        /// </summary>
        [Required(ErrorMessage = "开始时间不能为空")]
        public DateTime? startTime { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        [Required(ErrorMessage = "结束时间不能为空")]
        public DateTime? endTime { get; set; }
        /// <summary>
        /// 日程内容
        /// </summary>
        [Required(ErrorMessage = "日程内容不能为空")]
        public string content { get; set; }
        /// <summary>
        /// 微信提醒(1-提醒，0-不提醒)
        /// </summary>
        [Required(ErrorMessage = "微信提醒不能为空")]
        public int? weChatAlert { get; set; }
        /// <summary>
        /// 邮件提醒(1-提醒，0-不提醒)
        /// </summary>
        [Required(ErrorMessage = "邮件提醒不能为空")]
        public int? mailAlert { get; set; }
        /// <summary>
        /// 短信提醒(1-提醒，0-不提醒)
        /// </summary>
        [Required(ErrorMessage = "短信提醒不能为空")]
        public int? mobileAlert { get; set; }
        /// <summary>
        /// APP提醒(1-提醒，0-不提醒)
        /// </summary>
        [Required(ErrorMessage = "APP提醒不能为空")]
        public int? appAlert { get; set; }
        /// <summary>
        /// 提醒设置
        /// </summary>
        [Required(ErrorMessage = "提醒设置不能为空")]
        public int? early { get; set; }
        /// <summary>
        /// 日程颜色	
        /// </summary>
        [Required(ErrorMessage = "日程颜色不能为空")]
        public string colour { get; set; }
        /// <summary>
        /// 颜色样式
        /// </summary>
        [Required(ErrorMessage = "颜色样式不能为空")]
        public string colourCss { get; set; }
    }
}
